From: Nathan Studer Date: Tue, 3 Dec 2013 22:24:27 +0000 (-0500) Subject: arinc: Add poolid parameter to scheduler get/set functions X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~5823 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=81dcaaa97a21cb397cd326fdcb8f9953ea23ceff;p=xen.git arinc: Add poolid parameter to scheduler get/set functions Signed-off-by: Nathan Studer Reviewed-by: Dario Faggioli Acked-by: Ian Campbell --- diff --git a/tools/libxc/xc_arinc653.c b/tools/libxc/xc_arinc653.c index fe2ddcba53..5d61c1ac11 100644 --- a/tools/libxc/xc_arinc653.c +++ b/tools/libxc/xc_arinc653.c @@ -29,6 +29,7 @@ int xc_sched_arinc653_schedule_set( xc_interface *xch, + uint32_t cpupool_id, struct xen_sysctl_arinc653_schedule *schedule) { int rc; @@ -42,7 +43,7 @@ xc_sched_arinc653_schedule_set( return -1; sysctl.cmd = XEN_SYSCTL_scheduler_op; - sysctl.u.scheduler_op.cpupool_id = 0; + sysctl.u.scheduler_op.cpupool_id = cpupool_id; sysctl.u.scheduler_op.sched_id = XEN_SCHEDULER_ARINC653; sysctl.u.scheduler_op.cmd = XEN_SYSCTL_SCHEDOP_putinfo; set_xen_guest_handle(sysctl.u.scheduler_op.u.sched_arinc653.schedule, @@ -58,6 +59,7 @@ xc_sched_arinc653_schedule_set( int xc_sched_arinc653_schedule_get( xc_interface *xch, + uint32_t cpupool_id, struct xen_sysctl_arinc653_schedule *schedule) { int rc; @@ -71,7 +73,7 @@ xc_sched_arinc653_schedule_get( return -1; sysctl.cmd = XEN_SYSCTL_scheduler_op; - sysctl.u.scheduler_op.cpupool_id = 0; + sysctl.u.scheduler_op.cpupool_id = cpupool_id; sysctl.u.scheduler_op.sched_id = XEN_SCHEDULER_ARINC653; sysctl.u.scheduler_op.cmd = XEN_SYSCTL_SCHEDOP_getinfo; set_xen_guest_handle(sysctl.u.scheduler_op.u.sched_arinc653.schedule, diff --git a/tools/libxc/xenctrl.h b/tools/libxc/xenctrl.h index 4ac6b8a8ff..cced208097 100644 --- a/tools/libxc/xenctrl.h +++ b/tools/libxc/xenctrl.h @@ -796,11 +796,13 @@ int xc_sched_credit2_domain_get(xc_interface *xch, int xc_sched_arinc653_schedule_set( xc_interface *xch, + uint32_t cpupool_id, struct xen_sysctl_arinc653_schedule *schedule); int xc_sched_arinc653_schedule_get( xc_interface *xch, + uint32_t cpupool_id, struct xen_sysctl_arinc653_schedule *schedule); /**